package com.yy.micro.magic.data.repository;

import com.yy.micro.magic.data.entity.DynamicTriggerEntity;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DynamicTriggerRepository extends JpaRepository<DynamicTriggerEntity,Long> {

    DynamicTriggerEntity findByPlanCodeAndTriggerAndDisable(String planCode,String trigger,boolean disable);

    List<DynamicTriggerEntity> findByPlanCodeAndDisable(String planCode, boolean disable);


}
